package com.jsgt.greekfire.dialog;

import android.app.Dialog;
import android.content.Context;

import java.util.List;

/**
 * 对话框抽象类
 */
public abstract class IDialog {

    public static final int YES = -1;

    public static final int CANCEL = -2;
    private static IDialog dialog;

    public static IDialog getInstance() {
        if (dialog == null) {
            dialog = new DialogImpl();
        }
        return dialog;
    }

    /**
     * item选择对话框
     *
     * @param context
     * @param title
     * @param items
     * @param callback
     */
    public abstract Dialog showItemDialog(Context context, String title, List<String> items, List<Integer> icons, DialogCallBack callback);

    public abstract Dialog showItemDialog(Context context, String title,
                                          List<String> items, List<Integer> icons, int itemGravity, int titleGravity, final DialogCallBack dialogCallBack);


}
